package dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import entity.Account;

public class AccountRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNumber) throws SQLException {
		Account account = new Account();
		account.setId( rs.getInt("id") );
		account.setBalance( rs.getInt("balance") );
		
		return account;
	}

}
